package com.service;

import com.dao.Dao;
import com.pojo.Student;
import com.utils.Toolutils;

import java.util.List;

public class Service {

private Dao dao=new Dao();

    /**
     * 添加学生
     * @param s
     * @return
     */
    public int insertStudent(Student s) {
        return dao.insertStudent(s);
    }





    public int updateStudentBysid(Student s) {
        return dao.updateStudentBysid(s);
    }

    /**
     * 通过sid 查学生
     * @param sid
     * @return
     */
    public Student queryStudentBySid(int sid) {
        return dao.queryStudentBySid(sid);
    }

    public int deleteStudent(String sid) {
        return dao.deleteStudent(sid);
    }

    public int deleteStudentBySid(String sid) {
        return dao.deleteStudentBySid(sid);
    }

    public int dimQueryStudent(String sname, String sex) {
        return dao.dimQueryStudent(sname,sex);
    }

    public List souSuoStudent(String sname, String sex, Toolutils tl) {
       return dao.souSuoStudent(sname,sex,tl);
    }
}
